package com.jswdwsx.esign.entity

import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import org.springframework.data.annotation.CreatedDate
import org.springframework.data.jpa.domain.support.AuditingEntityListener
import java.time.LocalDateTime
import javax.persistence.*

@Entity
@EntityListeners(AuditingEntityListener::class)
@DynamicInsert
@DynamicUpdate
@Table(name = "file_template")
class FileTemplatePO(

    @Id
    var fileTemplateId: String,

    var flowTemplateId: String,

    var name: String,

    @CreatedDate
    @Column(name = "created_time")
    var createdTime: LocalDateTime? = null

)